<%--
  @Kusal Samarakoon
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:if test=" editMode !=8 && editMode !=9 && editMode !=21 && editMode !=2">
    <s:a href="landAlienationModuleHome.do"><img src="${pageContext.request.contextPath}/images/interest-party.png"
                                                 alt="Land Registration"><span><s:label
            value="%{getText('land_alienation.label')}"/></span></s:a>
    <span class="module-title-breaker"> > </span>

</s:if>


<s:if test="editMode==3">
    <s:if test="#session.userGroup=='ords'">
        <s:a href="loadDetailedApplicationListToBeApproved.do"><img
                src="${pageContext.request.contextPath}/images/accept.png"
                alt="Land Registration"><span><s:label
                value="%{getText('detailed_alienation_applications_approval.label')}"/></span></s:a>
    </s:if>

</s:if>
<s:elseif test="editMode==0">
    <s:if test="#session.userGroup=='lo'">
        <%--<s:a href="approvedInitApplicationFormsList.do"><img
                src="${pageContext.request.contextPath}/images/detailed-form.png"
                alt="Land Registration"><span><s:label
                value="%{getText('detailed_alienation_applications.label')}"/></span></s:a>
        <div id="back-button" align="right">
            <s:form><s:submit value="%{getText('back_btn.label')}" action="approvedInitApplicationFormsList"/></s:form>
        </div>--%>
        <div id="back-button" align="right">
            <s:submit type="input" value="%{getText('back.label')}" onclick="goBack();"/>
        </div>
    </s:if>
</s:elseif>
<s:elseif test="editMode==1">
    <s:if test="#session.userGroup=='lo'">
        <s:a href="detailApplicationApprove.do"><img
                src="${pageContext.request.contextPath}/images/registration-form.png"
                alt="Land Registration"><span><s:label
                value="%{getText('modify_detail_alienation_application.label')}"/></span></s:a>
    </s:if>
</s:elseif>
<s:elseif test="editMode==4">
    <s:if test="#session.userGroup=='plc'">
        <s:a href="loadDetailedApplicationListToBeFinalized.do"><img
                src="${pageContext.request.contextPath}/images/accept.png"
                alt="Land Alienation"><span><s:label
                value="%{getText('finalize_land_application.label')}"/></span></s:a>
    </s:if>
    <s:elseif test="#session.userGroup=='lo'">
        <s:a href="interviewAppListPageLoad.do"><img
                src="${pageContext.request.contextPath}/images/registration-form.png"
                alt="Land Registration"><span><s:label
                value="Interview"/></span></s:a>
    </s:elseif>

</s:elseif>
<%--<s:elseif test="editMode==5">
    &lt;%&ndash;<s:a href="loadApplicationListToBeCompleted.do"><img src="${pageContext.request.contextPath}/images/Company.jpg"&ndash;%&gt;
                                                                &lt;%&ndash;alt="Land Alienation"><span><s:label&ndash;%&gt;
            &lt;%&ndash;value="%{getText('alienation_task.label')}"/></span></s:a>&ndash;%&gt;
     <s:a href="objectionAppListPageLoad.do"><img src="${pageContext.request.contextPath}/images/Company.jpg"
                                                                alt="Land Alienation"><span><s:label
            value="Handle Objections"/></span></s:a>

</s:elseif>--%>
<s:elseif test="editMode==6">
    <%--  <s:a href="loadApplicationList.do?workflowAction=approved">
          <img src="${pageContext.request.contextPath}/images/accept.png" alt="Alienation">
          <span><s:label value="%{getText('alienation_approval.label')}"/></span>
      </s:a>
  --%>
    <s:a href="loadApplicationList.do?workflowAction=approved">
        <img src="${pageContext.request.contextPath}/images/accept.png" alt="Alienation">
        <span><s:label value="Approve Objections"/></span>
    </s:a>

</s:elseif>
<s:elseif test="editMode==7">
    <s:a href="loadApplicationList.do?workflowAction=approved">
        <img src="${pageContext.request.contextPath}/images/accept.png" alt="Alienation">
        <span><s:label value="Finalize Application"/></span>
    </s:a>

</s:elseif>
<s:elseif test="editMode==8 ">
    <s:a href="landAlienationModuleHome.do"><img src="${pageContext.request.contextPath}/images/interest-party.png"
                                                 alt="Land Registration"><span><s:label
            value="%{getText('land_alienation.label')}"/></span></s:a>
    <span class="module-title-breaker"> > </span>
    <s:a href="detailApplicationFinalized.do"><img
            src="${pageContext.request.contextPath}/images/land-reg.png"><span><s:label
            value="%{getText('attach_land.label')}"/></span></s:a>

</s:elseif>
<s:elseif test="editMode==9">
    <s:a href="landAlienationModuleHome.do"><img src="${pageContext.request.contextPath}/images/interest-party.png"
                                                 alt="Land Registration"><span><s:label
            value="%{getText('land_alienation.label')}"/></span></s:a>
</s:elseif>
<s:elseif test="editMode==11">
    <s:a href="landAlienationModuleHome.do"><img src="${pageContext.request.contextPath}/images/interest-party.png"
                                                 alt="Land Registration"><span><s:label
            value="Complete Application"/></span></s:a>
</s:elseif>
<s:elseif test="editMode==12">
    <s:a href="landAlienationModuleHome.do"><img src="${pageContext.request.contextPath}/images/interest-party.png"
                                                 alt="Land Registration"><span><s:label
            value="Approve Completed Application"/></span></s:a>
</s:elseif>
<s:elseif test="editMode==20">
    <s:a href="landAlienationModuleHome.do"><img src="${pageContext.request.contextPath}/images/interest-party.png"
                                                 alt="Land Registration"><span><s:label
            value="Approve Alienation"/></span></s:a>
</s:elseif>
<s:elseif test="editMode ==21">
    <s:a href="searchModule.do"><img src="${pageContext.request.contextPath}/images/search.png"
                                     alt="Land Alienation"><span><s:label
            value="%{getText('search.label')}"/></span></s:a>
    <span class="module-title-breaker"> > </span>
    <s:a href="loadApplicationSearchPage.do"><img
            src="${pageContext.request.contextPath}/images/search_by_reference.png"><span><s:label
            value="%{getText('search_application.label')}"/></span></s:a>
    <div id="back-button" align="right">
        <s:submit type="input" value="%{getText('back.label')}" onclick="goBack();"/>
        <s:submit type="input" value="%{getText('print.label')}"
                  onclick="printPage('init-land-permits-application-outer', 'A4', 'P');"/>
    </div>

</s:elseif>
<s:elseif test="editMode ==2">

    <s:if test="searchValue ==1">
        <s:a href="searchModule.do"><img src="${pageContext.request.contextPath}/images/search.png"
                                         alt="Land Alienation"><span><s:label
                value="%{getText('search.label')}"/></span></s:a>
        <span class="module-title-breaker"> > </span>
        <s:a href="loadApplicationSearchPage.do"><img
                src="${pageContext.request.contextPath}/images/search_by_reference.png"><span><s:label
                value="%{getText('search_application.label')}"/></span></s:a>

    </s:if>
    <s:else>
        <s:if test="#session.userGroup !='lo'">
            <s:a href="landAlienationModuleHome.do"><img src="${pageContext.request.contextPath}/images/accept.png"
                                                         alt="Land Registration"><span><s:label
                    value="%{getText('land_alienation.label')}"/></span></s:a>
            <span class="module-title-breaker"> > </span>
            <%--<s:a href="loadApplicationList.do?workflowTask=DETAILED_FORM_DATA_ENTRY">
                <img src="${pageContext.request.contextPath}/images/accept.png" alt="Detailed Alienation Applications">
                <span><s:label value="%{getText('detailed_alienation_applications_approval.label')}"/></span>
            </s:a>--%>

        </s:if>
        <s:else>
            <s:a href="landAlienationModuleHome.do"><img
                    src="${pageContext.request.contextPath}/images/interest-party.png"
                    alt="Land Registration"><span><s:label
                    value="%{getText('land_alienation.label')}"/></span></s:a>
            <span class="module-title-breaker"> > </span>
        </s:else>


    </s:else>


    <div id="back-button" align="right">
        <s:submit type="input" value="%{getText('back.label')}" onclick="goBack();"/>
        <s:submit type="input" value="%{getText('print.label')}"
                  onclick="printPage('init-land-permits-application-outer', 'A4', 'P');"/>
    </div>

</s:elseif>


<%--
<s:property value="editMode"/>
<s:property value="searchValue"/>--%>
